{% extends "panel/panel_base.html" %}
{% load socialgraph %}
{% block panel_title%}Users you are following:{% endblock %}
{% block panel_content %}
	<div id="message_control" style="width:200px">
		<ul>
			<li><a href="http://fblaconnection.com/panel/{{user.username}}/socialgraph/">Following</a></li>
			<li><a href="http://fblaconnection.com/panel/{{user.username}}/socialgraph/followers/">Following You</a></li>
		</ul>
	</div>
	<div id="search_box">
		<br />
		{% if following %}
		<strong>Following:</strong><br />
		<div id="search_box_border"></div>
		{% for q in following %}
		<span id="search_res">Name: <a class="search_res" href="http://fblaconnection.com/panel/{{q.username}}/userp/">
			{{q.first_name}}  {{q.last_name}} - Grade: 
			{% ifequal q.get_profile.grade 9 %}Freshman{% endifequal %}
			{% ifequal q.get_profile.grade 10 %}Sophomore{% endifequal %}
			{% ifequal q.get_profile.grade 11 %}Junior{% endifequal %}
			{% ifequal q.get_profile.grade 12  %}Senior{% endifequal %}
			{% ifequal q.get_profile.grade 13 %}Graduated{% endifequal %}<br />
		Username: {{q}}<br /> Email: {{q.email}}</a><br />
		<a href="http://fblaconnection.com/panel/{{request.user.username}}/messages/send/?user={{q.username}}">Message</a> | 
		<a href="http://fblaconnection.com/panel/{{q.username}}/gallery/">Gallery</a> | 
		<a href="http://fblaconnection.com/panel/{{request.user.username}}/socialgraph/follow/?ex={{q|is_following:request}}&user={{q.username}}">{{q|is_following_text:request}}</a>
		</span>
		<br /><br />
		<div id="search_box_border"></div>
	{% endfor %}
	{% else %}
	<br />
	You aren't currently following any users, to search for people please click <a href="http://fblaconnection.com/panel/search/">here</a>.
	{% endif %}
	
{% endblock %}